{extend name="base_mobile" /}
{block name="body"}
<header class="hui-header">
    <div id="hui-back"></div>
    <h1>编辑账户</h1>
    <div id="hui-header-menu" onclick="hui.showSlideMenu();"></div>
</header>
<div class="hui-wrap">
    <form action="{:request()->url()}" class="hui-form" method="post">
        <div class="hui-form-items">
            <div class="hui-form-items-title">用户名</div>
            <input type="text" name="username" value="{$data.username|default=''}" autocomplete="off" placeholder="请输入用户名" lay-verify="required" class="hui-input hui-input-clear" {if isset($data.username)}disabled{/if}>
        </div>
        <div class="hui-form-items">
            <div class="hui-form-items-title">用户昵称</div>
            <input type="text" name="realname" value="{$data.realname|default=''}" autocomplete="off" placeholder="请输入用户昵称" lay-verify="required" class="hui-input">
        </div>
        <div class="hui-form-items">
            <div class="hui-form-items-title">手机号</div>
            <input type="text" name="mobile" value="{$data.mobile|default=''}" autocomplete="off" placeholder="请输入手机号" lay-verify="phone|number" class="hui-input">
        </div>
        <div class="hui-form-items">
            <div class="hui-form-items-title">Email</div>
            <input type="text" name="email" value="{$data.email|default=''}" autocomplete="off" placeholder="请输入Email" class="hui-input">
        </div>
        <div class="hui-form-items">
            <div class="hui-form-items-title">密码</div>
            <input type="password" name="password" value="" autocomplete="off" placeholder="请输入密码" class="hui-input">
        </div>
        
        <div style="padding:15px 8px;">
            <button class="hui-button hui-button-large hui-primary" lay-filter="*" lay-submit="">保存</button>
        </div>
    </form>
</div>
{/block}
